package com.zxcz.controller;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.aliyuncs.iot.model.v20180120.QueryProductResponse;
import com.aliyuncs.iot.model.v20180120.QueryProductResponse.Data;
import com.zxcz.aliyun.IotConfig;
import com.zxcz.aliyun.IotManager;
import com.zxcz.domain.IotProduct;
import com.zxcz.domain.Result;
import com.zxcz.service.IotProductService;
import com.zxcz.tools.CustomHttpStatus;
import com.zxcz.tools.ResultUtil;

@RestController
@RequestMapping(value = "/iotProduct")
public class IotProductController {
	@Autowired
	private IotProductService iotProductService;
	
	@RequestMapping("/query")
	public Result<Object> queryIotProduct() {
		return iotProductService.queryIotProduct();
	}
	
	@RequestMapping("/import")
	public Result<Object> importProducts() {
		return iotProductService.importProducts();
	}
}
